package br.unb.mestrado.simulator.model.context;

public class ComposedObject {
	
	Integer[] identifiers;
	
	public ComposedObject(Integer ... objs) {
		this.identifiers = objs;
	}

	public Integer[] getIdentifiers() {
		return identifiers;
	}

	public void addIdentifier(Integer id) {
		if(identifiers==null){
			identifiers = new Integer[1];
			identifiers[0] = id;
		}else{
			Integer[] newArray = new Integer[identifiers.length+1];
			for (int i = 0; i < identifiers.length; i++) {
				newArray[i] = identifiers[i];
			}
			newArray[newArray.length-1] = id;
			this.identifiers =  newArray;
		}
	}
		
}
